'use strict'

import module1 from './app/module1/index.vue'
import module2 from './app/module2/index.vue'
import module3 from './app/module3/index.vue'
import module4 from './app/module4/index.vue'
import goDetail from './app/module4/detail.vue'
import classDetail from './classDetail/index.vue'
import schoolDetail from './classDetail/schoolDetail.vue'
import successDetail from './classDetail/successDetail.vue'

/*
* cx4 router
* */

import articleIndex from './cx4/article/index.vue'

export default function(router) {
    router.map({
        '/': {
             name: 'classDetail',
            component: classDetail
        },
        '/module1': {
            name: 'module1',
            component: module1
        },
        '/module2': {
            name: 'module2',
            component: module2
        },
        '/module3': {
            name: 'module3',
            component: module3
        },
        '/module4': {
            name: 'module4',
            component: module4
        },
        '/goDetail/:id': {
            name: 'goDetail',
            component: goDetail
        },
        '/classDetail': {
            name: 'classDetail',
            component: classDetail
        },
        '/schoolDetail': {
            name: 'schoolDetail',
            component: schoolDetail
        },
        '/successDetail': {
            name: 'successDetail',
            component: successDetail
        },
    })
}
